home *** CD-ROM | disk | FTP | other *** search
- Path: fido.asd.sgi.com!austern
- From: John Max Skaller <maxtal@suphys.physics.su.oz.au>
- Newsgroups: comp.std.c++
- Subject: Re: Give operator. a chance
- Date: 05 Feb 1996 09:25:34 PST
- Organization: MAXTAL
- Approved: austern@isolde.mti.sgi.com
- Message-ID: <31140DF8.23A4@suphys.physics.su.oz.au>
- References: <3102AD11.1663@et.se> <4e0nc3$4dp@engnews1.eng.sun.com>
- <4e90k4$gqr@hermes.synopsys.com> <u9pwc00wqn.fsf@yorick.cygnus.com>
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: Sun, 04 Feb 1996 11:38:00 +1000
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMRY9l0y4NqrwXLNJAQEmRgH9HRgXOSNF8eDbMXed7fzFJHsEovDL/XIa
- WR2eyR1MHxkuPlC2KCEHDPgm8thAHik8GGJWrLO3aNRNa6RedTLGSA==
- =sBx0
- Originator: austern@isolde.mti.sgi.com
-
- Jason Merrill wrote:
- >
- > >>>>> Joe Buck <jbuck@Synopsys.COM> writes:
- >
- > > Stroustrup proposes that operator. only forward to the resulting class
- > > for a.m if the object itself doesn't have a member m.
-
- He did?
-
- Stroustrup actually proposed -- AND implemented and tested:
-
- struct X : *Y { .. };
-
- which looked good to me. He said that programmers found it
- hard to use, however, and dropped it.
-
- > I think a more natural way to achieve the delegation semantics proposed by
- > Stroustrup would be to extend 'using' along these lines:
- >
- > struct A {
- > void f ();
- > };
- >
- > struct ARef {
- > A* a;
- > using *a;
- > };
-
- I believe _I_ first proposed that. Again,
- it looks good on the surface but until precise details
- are given it isn't easy to see exactly what the
- consequences will be. As with deriving from
- an expression (Bjarne's idea) it may just turn out
- to be to hard to use -- even if it works.
- --
- John Max Skaller voice: 61-2-566-2189
- 81 Glebe Point Rd fax: 61-2-660-0850
- GLEBE NSW 2037 web: http://www.maxtal.com.au/~skaller/
- AUSTRALIA email: skaller@maxtal.com.au
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is
- in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
-